package com.zhen.aikan.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author lijiazhen
 * @since 2023-09-11
 */
@Data
@TableName("tb_user")
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty("主键")
    @TableId("id")
    private long id;
    @ApiModelProperty("账号")
    private String userId;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("生日")
    private LocalDateTime birthday;

    @ApiModelProperty("昵称")
    private String userName;

    @ApiModelProperty("头像地址")
    private String profilePhotoUrl;

    @ApiModelProperty("账号状态（1：正常 2：删除）")
    private Integer state;

    @ApiModelProperty("会员状态（1：会员 2：非会员）")
    private Integer membership;

    @ApiModelProperty("会员到期时间")
    private LocalDateTime membershipServiceExpirationTime;

    @ApiModelProperty("注册时间")
    private LocalDateTime joinDate;
}
